import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import http from './utils/httpRequest' // api: https://github.com/axios/axios
import App from './App.vue'

import 'vue-area-linkage/dist/index.css'; // v2 or higher
import VueAreaLinkage from 'vue-area-linkage';



import VueRouter from 'vue-router'
import routes from './router/index'

Vue.use(ElementUI)
Vue.use(VueRouter)
Vue.use(VueAreaLinkage)

// 挂载全局
Vue.prototype.$http = http // ajax请求方法

const router = new VueRouter({
  routes
})

new Vue({
  router,
  el: '#app',
  render: h => h(App)
})
